package com.da.javalog.handler;

import com.da.javalog.common.EnableOtherLog;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenlida
 * @date 2020/4/12 13:44
 * @description
 */
@RestController
@EnableOtherLog(topic = "TEST_MSG")
@RequestMapping("/test")
public class Test {
    @RequestMapping("/hello")
    public String hello(String name) {
        if ("a".equals(name)) {
            throw new RuntimeException("a");
        }
        return "Hello " + name;
    }
}
